<template>
  <div class="xinxuanzi">
    <div class="xximg">
        <img :src="imgurl"/>
    </div>
    <div class="xxtext">
        <p>{{title}}</p>
        <div class="bbbb">
            <span> {{fresh}} </span>
        <span>{{old}}</span>
        </div>
        
    </div>
  </div>
</template>

<script>
export default {
    props:["imgurl","title","fresh","old"]
}
</script>

<style lang="scss">
    .xinxuanzi{
        width: 1.05rem;
        height: 1.51rem;
        // flex:1;
        .xximg{
            width: 1.05rem;
            height: 1.05rem;
            border: 1px solid #ccc;
          
             img{
            width: .93rem;
            height: .93rem;
            display: block;
            margin: .05rem auto
             }

        }
        .xxtext{
            margin-top: .05rem;
            width: 1.05rem;
            
            p{
                line-height: 16px;
                font-size: 12px;
                margin-bottom: .05rem;
            }
            .bbbb{
                width: 1.05rem;
                height: .22rem;
                overflow: hidden;
                line-height: .22rem;
                 span:nth-child(1){
                text-align: left;
                font-size: .12rem;
                color: #333;
                font-weight: bold;
                display: inline-block;
                width: .55rem;
                overflow: hidden;
                float: left;
            }
            span:nth-child(2){
                text-align: right;
                font-size: .12rem;
                color: #999;
                display: inline-block;

            }
            }
           
        }
       
    }
</style>